package com.wei.service;

import com.wei.dao.questionMapper;
import com.wei.pojo.question;

import java.util.List;

public class questionServiceImpl  implements questionService{
    private questionMapper questionMapper;

    public void setQuestionMapper(com.wei.dao.questionMapper questionMapper) {
        this.questionMapper = questionMapper;
    }

    @Override
    public List<question> queryAllASQuestion() {
        return questionMapper.queryAllASQuestion();
    }

    @Override
    public List<question> queryAllASMDQuestion() {
        return questionMapper.queryAllASMDQuestion();
    }

    @Override
    public List<question> queryAllMixQuestion() {
        return questionMapper.queryAllMixQuestion();
    }

    @Override
    public int insertQuestion(question question) {
        return questionMapper.insertQuestion(question);
    }

    @Override
    public int updateAsQuestion(question question) {
        return questionMapper.updateAsQuestion(question);
    }

    @Override
    public int updateASMDQuestion(question question) {
        return questionMapper.updateASMDQuestion(question);
    }

    @Override
    public int updateMixQuestion(question question) {
        return questionMapper.updateMixQuestion(question);
    }
}
